Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <style> #myDIV { text-align: justify; } </style> </head> <body> <div id="myDIV"> You can use the text-align-last property to align the last line of a text, if the text has the text-align property set to justify. This text is where you will see the result of the text-align-last property. You can use the text-align-last property to align the last line of a text, if the text has the text-align property set to justify. This text is where you will see the result of the text-align-last property. You can use the text-align-last property to align the last line of a text, if the text has the text-align property set to justify. This text is where you will see the result of the text-align-last property. You can use the text-align-last property to align the last line of a text, if the text has the text-align property set to justify. This text is where you will see the result of the text-align-last property. You can use the text-align-last property to align the last line of a text, if the text has the text-align property set to justify. This text is where you will see the result of the text-align-last property. You can use the text-align-last property to align the last line of a text, if the text has the text-align property set to justify. This text is where you will see the result of the text-align-last property. You can use the text-align-last property to align the last line of a text, if the text has the text-align property set to justify. This text is where you will see the result of the text-align-last property. You can use the text-align-last property to align the last line of a text, if the text has the text-align property set to justify. This text is where you will see the result of the text-align-last property. </div> <p>Click the "Try it" button to change the text-align-last property of the DIV element</p> <button onclick="myFunction()">Try it</button> <script> function myFunction() { document.getElementById("myDIV").style.MozTextAlignLast = "right"; // Code for Firefox document.getElementById("myDIV").style.textAlignLast = "right"; // Standard Syntax } </script> <p><b>Note:</b> The textAlignLast property is currently only supported in Internet Explorer.</p> <p><b>Note:</b> Firefox supports an alternative, the MozTextAlignLast property.</p> </body> <!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_style_textalignlast by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 08:25:56 GMT --> </html>
Result:
Try it Yourself - © w3schools.com